package com.buli.blmall.admin.common.request;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author xiang.gao
 * @date 2025/2/27 15:24
 */
@Data
public class SmsLogin {

    @NotBlank(message = "手机号不能为空")
    @Length(min = 11, max = 11, message = "手机号长度为11位")
    private String phoneNumber;

    @NotBlank(message = "短信验证码不能为空")
    @Length(min = 4, max = 4, message = "短信验证码长度为4位")
    private String smsCode;

}
